/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nxlv2.nomad.businessobjects;

import java.util.List;
import org.joda.time.DateTime;

/**
 *
 * @author Nastasia
 */
public class Utilisateur {
    private int idBase, idAppli;
    private String nom, prenom, mail, mdp;
    private DateTime dateSynchro;
    private List<Client> listClient;
    private List<Satisfaction> listSatisfaction;

    
    public Utilisateur(){}
    /**
     * 
     * @param idBase
     * @param idAppli
     * @param nom
     * @param prenom
     * @param mail
     * @param mdp 
     */
    public Utilisateur(int idBase, int idAppli, String nom, String prenom, String mail, String mdp) {
        this.idBase = idBase;
        this.nom = nom;
        this.prenom = prenom;
        this.mail = mail;
        this.mdp = mdp;
    }

    public Utilisateur(String mail, String mdp) {
        this.mail = mail;
        this.mdp = mdp;
    }

    /**
     * 
     * @return idAppli
     */
    public int getIdAppli() {
        return idAppli;
    }

    /**
     * 
     * @param idAppli 
     */
    public void setIdAppli(int idAppli) {
        this.idAppli = idAppli;
    }

    
    /**
     * 
     * @return idBase
     */
    public int getIdBase() {
        return idBase;
    }

    /**
     * 
     * @param idBase the idBase to set
     */
    public void setIdBase(int idBase) {
        this.idBase = idBase;
    }

    /**
     * 
     * @return nom
     */
    public String getNom() {
        return nom;
    }

    /**
     * 
     * @param nom the nom to set
     */
    public void setNom(String nom) {
        this.nom = nom;
    }

    /**
     * 
     * @return prenom
     */
    public String getPrenom() {
        return prenom;
    }

    /**
     * 
     * @param prenom the prenom to set
     */
    public void setPrenom(String prenom) {
        this.prenom = prenom;
    }

    /**
     * 
     * @return mail
     */
    public String getMail() {
        return mail;
    }

    /**
     * 
     * @param mail the mail to set
     */
    public void setMail(String mail) {
        this.mail = mail;
    }

    /**
     * 
     * @return mdp
     */
    public String getMdp() {
        return mdp;
    }

    /**
     * 
     * @param mdp the mdp to set
     */
    public void setMdp(String mdp) {
        this.mdp = mdp;
    }

    /**
     * 
     * @return DateTime
     */
    public DateTime getDateSynchro() {
        return dateSynchro;
    }

    /**
     * 
     * @param dateSynchro 
     */
    public void setDateSynchro(DateTime dateSynchro) {
        this.dateSynchro = dateSynchro;
    }

    /**
     * 
     * @return listClient
     */
    public List<Client> getListClient() {
        return listClient;
    }
    /**
     * 
     * @return listSatisfaction
     */
    public List<Satisfaction> getSatisfaction(){
        return listSatisfaction;
    }
        /**
     * 
     * @param listClient the listClient to set
     */
    public void setListClient(List<Client> listClient) {
        this.listClient = listClient;
    }
    public void setListSatisfaction(List<Satisfaction> listSatisfaction) {
        this.listSatisfaction = listSatisfaction;
    }

    /**
     * 
     * @return String
     */
    @Override
    public String toString() {
        return "Utilisateur{" + "idBase=" + idBase + ", idAppli=" + idAppli +", nom=" + nom + ", prenom=" + prenom + ", mail=" + mail + ", mdp=" + mdp + ", dateSynchro=" + dateSynchro + ", listClient=" + listClient + '}';
    }   
    
    public String toJSONString(){
        return "{\"idBase\":\""+ idBase +"\",\"idAppli\":\""+ idAppli +"\",\"mail\":\""+ mail +"\"}";
    }

}
